package com.black.common.exception;

/**
 * @author linwenfeng
 */

public enum ExceptionCode {
    /**
     * 数据已经存在
     */
    exists("数据已经存在",1);


    private String message;
    private int code;

    ExceptionCode(String message, int code) {
        this.message = message;
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }


}
